import axios from 'axios'
import { request } from '@/utils/request'
import { request_t,instance} from '@/utils/request2';
//个人中心 首页消息列表
    export function GetMessageList(data) {
        const url ='/api/user/message/Index';
        let res=request_t(url, 'get', data)
        return res
    };
//个人 消息中心详情页
export function getDetail(id) {
    const url ='/api/user/message/Detail';
    const data = {
        id:id,
        callback: 'callback'
    };
    let res=request_t(url, 'get', data)
    return res
};

//个人中心 标记已读
export function HaveRead(id) {
    const url = '/api/user/message/HaveRead';
    const data = {
        id:id,
        callback: 'callback'
    };
    let res=request_t(url, 'post', data)
    return res
};
//个人中心删除消息
export function Delete(id) {
    const url = '/api/user/message/Delete';
    const data = {
        id:id,
        callback: 'callback'
    };
    let res=request_t(url, 'post', data)
    return res
};
